﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HostComputer
{
    public partial class LoginForm : Form
    {
        private Brush background_brush;
        private Rectangle backgroundRectangle;


        public LoginForm()
        {
            InitializeComponent();

            backgroundRectangle = new Rectangle(0,0,this.Width, this.Height);
            
            background_brush = new LinearGradientBrush(backgroundRectangle,Color.Aqua, Color.Azure,LinearGradientMode.ForwardDiagonal);

        }

        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);

            var graphics = e.Graphics;

            
            graphics.FillRectangle(background_brush,backgroundRectangle);
        }

        private void LoginForm_Load(object sender, EventArgs e)
        {
            
        }

       

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
